public class ConcreteVisitor1 implements Visitor{
    public void visit(ConcreteElementA elementA) {
        System.out.println("具体访问者1: " + elementA.operationA());
    }

    public void visit(ConcreteElementB elementB) {
        System.out.println("具体访问者1: " + elementB.operationB());
    }
}
